package com.wenson.behavior.templatemethod;

/**
 * @ClassName: TemplateClient
 * @Author: luowangcheng
 * @Date: 2024/6/15 10:56
 * @Description:
 */
public class TemplateClient {
    public static void main(String[] args) {
        Mammal mammal = new Bat();
        mammal.live();

        mammal = new Whale();
        mammal.live();

        mammal = new Human();
        mammal.live();
    }
}
